package com.team.game.framework.Abstract;

import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.PathMeasure;
import android.graphics.Rect;
import android.graphics.RectF;

public abstract class Sprites {


    public float time;
    public boolean deadSearch = false;

    protected RectF rectDst;
    protected Rect rectSrc;

    protected int sprWidth, sprHeight; //ширина и высота спрайта Boss
    protected int curFrame;
    protected int health, start_hp;
    protected float speed;

    protected float x, y;
    protected float last_x = 0, last_y = 0;
    protected Matrix matrix;
    protected PathMeasure pathMeasure;
    protected int frame;

    protected float sumTime = 0;
    protected float fCounter = 0;
    protected int dead = 0;

    protected float destenation;
    protected Bitmap sprite;


    public abstract void drawSprite (Canvas canvas);

    public abstract void updateSprite ();

    public abstract RectF getRect ();

    public abstract void dec (float kick);

}
